import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

// 公共路由
export const constantRoutes = [{
    path: '/index',
    component: () => import('@/views/index'),
    },{
    path: '/excelToTable',
    component: () => import('@/views/excelToTable'),
    },
]

export default new Router({
    mode: 'history', // 去掉url中的#
    //   base:'/static/',
    routes: constantRoutes,
    scrollBehavior: () => ({
        y: 0
    })
})
